<?php echo $this->render('picture/special/_tab.phtml');?>
<form action="" method="post"<?php echo ' autocomplete="off"';?>>
<?php echo $this->form()->hidden('referer', $this->referer) . "\n";?>
<div class="body">
	<table class="search">
		<tr>
			<th><?php echo $this->language('YOU WILL DELETE SPECIAL');?>:</th>
			<th style="width:180px;"></th>
		</tr>
		<tr>
			<td>
				<table class="no-border form">	
					<tr>
						<td class="icon"><a href="<?php echo $this->url('picture/special/photo', array('id' => $this->row->getId()));?>"><img src="<?php echo $this->row->getCover()->getThumb(false);?>" /></a></td>
						<td>
							<h3 style="margin-bottom:5px;"><?php echo $this->escape($this->row->getLocale()->getTitle());?></h3>
							<strong>KEY: </strong><span class="red"><?php echo $this->row->getName();?></span>
							<p class="tags">
								<strong><?php echo $this->language('TAG');?>: </strong><?php 
								$tgs = array();
								foreach($this->row->getKeywords($this->row->getLocale()->getLang()) AS $tag) {
									$tgs[] = '<a href="#" onclick="return false;">' . $this->escape($tag) . '</a>';
								}
								echo implode(', ', $tgs);
								?>
							</p>
							<p class="tags">
								<strong><?php echo $this->language('CATEGORY');?>: </strong><?php 
								$cs = array(); 
								foreach($this->categories AS $category) {
									$cs[] = '<a href="#" onclick="return false;">' . $this->escape($category['title']) . '</a>';
								}
								echo implode($cs, ', ');
								?>
							</p>
						</td>
						<td><h1><?php echo $this->row->getPtotal();?></h1><code>PHOTO(s)</code></td>
					</tr>			
					<tr>
						<td colspan="3">
							<hr/>
							<ul>
								<li>
									<input type="checkbox" name="options[locale_only]" id="localeOnly" value="1"<?php echo (count($this->localeList) > 1 ? ' checked="checked"' : '');?> />
									<label class="for-checkbox" for="localeOnly"><?php echo $this->language('Delete Current Locale Information Only');?></label>
									<code style="padding-left:1.8em;">
										<?php echo $this->language('If not, all of the locale information and the Primary information will be deleted. The special will not be Existing forever');?>.<br/>
										<?php echo $this->language('This special has below locale(s)');?>:<span class="red" style="display:block;padding-top:5px;font-weight:bold;"><?php 
											foreach($this->localeList AS $locale) {
												echo '<p>[' . $this->language(strtoupper($locale->getLang())) . '] ';
												echo $this->escape($locale->getTitle()) . '</p>';
											}
										?></span>
									</code>
								</li>
								<li>
									<input type="checkbox" name="options[delete_photo]" id="deletePhoto" value="1" checked="checked" />
									<label class="for-checkbox" for="deletePhoto"><?php echo $this->language('Delete the base Photos Automatically');?></label>
									<code style="padding-left:1.8em;"><?php echo $this->language('The photo will be deleted but they were not in any other special(s)');?>.</code>
								</li>
							</ul>
							<hr/>
						</td>
					</tr>			
					<tr>
						<td colspan="3">
							<h3><?php echo $this->language('Please Enter Your Password');?>:</h3>
							<?php echo $this->form()->password('password', '', array('size' => '30', 'maxlength' => '30'));?>
						</td>
					</tr>
				</table>
			</td>
			<td class="cneter"><a href="<?php echo $this->row->getCover()->getLarge(false);?>" target="_blank"><img src="<?php echo $this->row->getCover()->getThumb(false);?>" style="width:180px;" /></a></td>
		</tr>
		<tr>
			<td colspan="2"><button type="submit" name="submit" value="submit"onclick="return confirm('<?php echo $this->language('Are you sure to DELETE this Special');?>?');"><?php echo $this->language('Submit');?></button></td>
		</tr>
	</table>
</div>
</form>
